<template>
  <div>
    <el-form-item>
      <span slot="label">
        选择组织架构
        <el-tooltip class="item" content="支持选择系统组织架构作为评选对象" effect="dark" placement="top-start">
          <i class="el-icon-question" />
        </el-tooltip>
      </span>
      <el-switch v-model="activeData.isSelectOrganization" />
    </el-form-item>
    <el-form-item label="是否多选">
      <el-switch v-model="activeData.multiple" @change="handleChange" />
    </el-form-item>
    <matrix-option :active-data="activeData" matrix-type="select" />
  </div>
</template>
<script>
import MatrixOption from './matrix'

import draggable from 'vuedraggable'

export default {
  name: 'ConfigItemMatrixSelect',
  components: {
    MatrixOption,
    draggable
  },
  props: ['activeData'],
  data() {
    return {}
  },
  methods: {
    handleChange() {
      this.$set(this.activeData.config, 'defaultValue', {})
    }
  }
}
</script>

<style lang="scss" scoped></style>
